package com.example.mypro;



import net.tsz.afinal.FinalActivity;
import net.tsz.afinal.FinalBitmap;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;

public class DianyingActivityItem extends FinalActivity{
	private TextView tv_bt;
	private TextView tv_sj;
	private TextView tv_lx;
	private TextView tv_jj;
	private TextView tv_dy;
	private TextView tv_zy;
	private ImageView iv_tp;
	private Intent intent;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.dianying_item);
		tv_bt = (TextView) findViewById(R.id.dianying_tv_title);
		tv_lx = (TextView) findViewById(R.id.dianying_tv_lx);
		tv_jj = (TextView) findViewById(R.id.dianying_tv_jj);
		tv_sj = (TextView) findViewById(R.id.dianying_tv_sj);
		tv_dy = (TextView) findViewById(R.id.dianying_tv_dy);
		tv_zy = (TextView) findViewById(R.id.dianying_tv_zy);
		iv_tp = (ImageView) findViewById(R.id.dianying_iv_tp);
		intent = getIntent();
		tv_bt.setText(intent.getStringExtra("dy_bt"));
		tv_lx.setText(intent.getStringExtra("dy_lx"));
		tv_jj.setText(intent.getStringExtra("dy_jj"));
		tv_sj.setText(intent.getStringExtra("dy_sj"));
		tv_dy.setText(intent.getStringExtra("dy_dy"));
		tv_zy.setText(intent.getStringExtra("dy_zy"));
		FinalBitmap.create(this).display(iv_tp, intent.getStringExtra("dy_tp"));
		
	}
	@Override
	protected void onDestroy() {
		super.onDestroy();
		finish();
	}
	}
